package com.sia.springcloud.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 通信协议变量表
 * </p>
 *
 * @author Sirius
 * @since 2022-03-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Point对象", description="通信协议变量表")
public class Point implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "数采:开启(1)关闭(0)")
    private Integer collect;

    @ApiModelProperty(value = "设备id(外键)")
    private Integer deviceId;

    @ApiModelProperty(value = "通信协议名称")
    private String protocolName;

    @ApiModelProperty(value = "点位名称")
    private String pointName;

    @ApiModelProperty(value = "频率")
    private Integer frequency;

    @ApiModelProperty(value = "发送频率")
    private Integer sendFrequency;

    @ApiModelProperty(value = "指标名称")
    private String metricName;

    @ApiModelProperty(value = "目标")
    private String target;

    @ApiModelProperty(value = "域")
    private String domain;

    @ApiModelProperty(value = "等级")
    private String scale;

    @ApiModelProperty(value = "功能码")
    private Integer functionCode;

    @ApiModelProperty(value = "从站")
    @TableField("slaveId")
    private Integer slaveId;

    @ApiModelProperty(value = "比特")
    private Integer bit;

    @ApiModelProperty(value = "开始地址")
    private Integer offset;

    @ApiModelProperty(value = "长度")
    private Integer length;

    @ApiModelProperty(value = "模式")
    private Integer pattern;

    @ApiModelProperty(value = "类型")
    private Integer type;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "组名")
    private String groupname;

    @ApiModelProperty(value = "标识名")
    private String tagname;

    @ApiModelProperty(value = "字符串变量1")
    private String varStr1;

    @ApiModelProperty(value = "字符串变量2")
    private String varStr2;

    @ApiModelProperty(value = "字符串变量3")
    private String varStr3;

    @ApiModelProperty(value = "字符串变量4")
    private String varStr4;

    @ApiModelProperty(value = "字符串变量5")
    private String varStr5;

    @ApiModelProperty(value = "整型变量1")
    private Integer varInt1;

    @ApiModelProperty(value = "整型变量2")
    private Integer varInt2;

    @ApiModelProperty(value = "整型变量3")
    private Integer varInt3;


}
